export const PAGE_CODE = 'dcs-parts-partInvoiceManage';
import {PAGE_TEN} from '../constants';
const EMPTY_ARRAY = [];
export const PERMISSION = {
    abandon: 'abandon',
    uploadSAP: 'uploadSAP',
    update: 'update',
    add: 'add',
    historySearch: 'historySearch'
};
export const DEFAULT_QUERY_OPTION = {
    dealerId: '',
    brandId: '',
    code: '',
    partSaleOrderCode: '',
    priceTerms: EMPTY_ARRAY,
    paymentType: EMPTY_ARRAY,
    shipmentType: EMPTY_ARRAY,
    invoicedDate: EMPTY_ARRAY,
    pageIndex: PAGE_TEN.index,
    pageSize: PAGE_TEN.size,
};

export const DEFAULT_SUBMIT_DATA = {
    otherAmount: 0,
    discountAmount: 0,
    details: [],
    packingLists: []
};

export const HISTORY_DEFAULT_QUERY_OPTION = {
    dealerId: '',
    code: '',
    status: undefined,
    orderCodes: '',
    invoicedDate: EMPTY_ARRAY,
    shipmentType: undefined,
    pageIndex: PAGE_TEN.index,
    pageSize: PAGE_TEN.size,
};
